<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('人才库修改')" />
    <style type="text/css">
        .layui-input, .layui-textarea{width:calc(100% - 100px);}
        .layui-form-label{width:180px}
        .layui-form-select dl{margin-left:80px;min-width: calc(100% - 100px);}
        .layui-edge{margin-right:28px;}
    </style>
</head>
<body>
	<form class="layui-form" id="form-talent-add" style="padding: 16px 84px 16px 25px;">
		<input type="hidden" id="guid" name="guid"  th:value="${talentPool?.guid}">
		<input type="hidden" id="cid" name="cid"  th:value="${talentPool?.cid}">
		<div class="layui-form-item">
		  <label class="layui-form-label">公司：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="cidName" id="cidName" th:value="${talentPool?.cidName}" class="layui-input" style="display:inline-block" readonly/>
		  		<i class="layui-icon layui-icon-more" onclick="getCompany()" style="position: relative;right: 30px;"></i>
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">岗位：</label>
		  <div class="layui-input-block">
		    <input type="text" name="position" id="position" th:value="${talentPool?.position}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">姓名：</label>
		  <div class="layui-input-block">
		    <input type="text" name="userName" id="userName" th:value="${talentPool?.userName}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">标签：</label>
		  <div class="layui-input-block">
		    <input type="text" name="vBq" id="vBq" th:value="${talentPool?.vBq}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">简历编号：</label>
		  <div class="layui-input-block">
		    <input type="text" name="vJlBh" id="vJlBh" th:value="${talentPool?.vJlBh}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">应聘职位：</label>
		  <div class="layui-input-block">
		    <input type="text" name=vYpZw id="vYpZw" th:value="${talentPool?.vYpZw}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">发布城市：</label>
		  <div class="layui-input-block">
		    <input type="text" name="vFfCs" id="vFfCs" th:value="${talentPool?.vFfCs}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">应聘日期：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="dYpRq" id="dYpRq" th:value="${#dates.format(talentPool.dYpRq, 'yyyy-MM-dd HH:mm:ss')}" autocomplete="off" class="layui-input t_date" readonly>
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">性别：</label>
		  <div class="layui-input-block">
		  	<input type="radio" name="vXb" value="男" title="男" checked>
		    <input type="radio" name="vXb" value="女" title="女" th:checked="${talentPool?.vXb eq '女'}">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">出生日期：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="dCsRq" id="dCsRq" th:value="${#dates.format(talentPool.dCsRq, 'yyyy-MM-dd HH:mm:ss')}" autocomplete="off" class="layui-input t_date" readonly>
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">目前居住地：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vJzd" id="vJzd" th:value="${talentPool?.vJzd}" autocomplete="off" placeholder="请输入" class="layui-input">
		 	  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">户口/国籍：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vGj" id="vGj" th:value="${talentPool.vGj}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item">
		  <label class="layui-form-label">工作年限：</label>
		  <div class="layui-input-block">
		    <input type="text" name="vGzNx" id="vGzNx" th:value="${talentPool?.vGzNx}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">学历/学位：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vXl" id="vXl" th:value="${talentPool?.vXl}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">毕业学校：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vXx" id="vXx" th:value="${talentPool?.vXx}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">专业：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vZy" id="vZy" th:value="${talentPool?.vZy}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		 <label class="layui-form-label">联系电话：</label>
		 	<div class="layui-input-block">
		  		<input type="text" name="vTel" id="vTel" th:value="${talentPool?.vTel}" autocomplete="off" placeholder="请输入" class="layui-input">
		  	</div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">电子邮件：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vMail" id="vMail" th:value="${talentPool?.vMail}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">地址：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vDz" id="vDz" th:value="${talentPool?.vDz}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">最近一家公司：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vSjGs" id="vSjGs" th:value="${talentPool?.vSjGs}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">最近一个职位：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vSgZw" id="vSgZw" th:value="${talentPool?.vSgZw}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">目前年收入：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vNsr" id="vNsr" th:value="${talentPool?.vNsr}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">期望薪资：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vQwXz" id="vQwXz" th:value="${talentPool?.vQwXz}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
		<div class="layui-form-item layui-form-text">
		  <label class="layui-form-label">求职状态：</label>
		  <div class="layui-input-block">
		  	<input type="text" name="vQzZt" id="vQzZt" th:value="${talentPool?.vQzZt}" autocomplete="off" placeholder="请输入" class="layui-input">
		  </div>
		</div>
	</form>
<th:block th:include="include :: footer" />
<script type="text/javascript">
var prefix = ctx + "hr/talentpool";
var $,layer,form,laydate;
layui.use(['form','layer','jquery','laydate'], function () {
     $ = layui.$,layer = layui.layer,form = layui.form,laydate=layui.laydate;
	laydate.render({elem:'#dYpRq',type:'datetime',trigger:'click'});
	laydate.render({elem:'#dCsRq',type:'datetime',trigger:'click'});
    form.render();
});
//选择公司
function getCompany(){
	$.modal.open('选择所属公司','/base/company/select',null,null,function(index){
		var res = window["layui-layer-iframe" + index].callbackdata();
        if(res=="none" || !res){//没有选中时
        	layer.msg("请选择！", {icon:7});
        }else{
        	$('#cid').val(res.vId);
        	$('#cidName').val(res.vName);
        	layer.close(index);
        }
	})
}
//提交调用的方法
function submitHandler() {
	if ($.validate.form()) {
	    $.operate.save(prefix + "/editpost", {'talentPoolItems':JSON.stringify([$.common.formToJSON('form-talent-add')])});
	}
}
</script>
</body>
</html>
